%{ for addr, port in ip_addrs ~}
backend ${addr}:${port}
%{ endfor ~}